import org.omg.Messaging.SyncScopeHelper;

import javax.swing.*;
import java.util.HashSet;
import java.util.Set;

public class Test<num1, num2> {
    public static void main(String[] args) {
       /*
        Leet1507 leet1507=new Leet1507();
        String data="20th Oct 2052";
        String a=leet1507.reformatDate(data);
        System.out.println(a);
        */
       /**
       Leet1518 leet1518 = new Leet1518();
        System.out.println(leet1518.numWaterBottles(9, 3));
    */
       /**
        int []arr = {1,2,3,4};
        int []arr2 = {2,3,4,7,11};
        int k = 5;
       Leet1539 leet1539=new Leet1539();
       k=leet1539.findKthPositive(arr2,k);
        System.out.println(k);
      //  System.out.println(arr.length+"11234123a");
        *//**
        int []arr = {1,2,3,4};
       Leet1480 leet1480=new Leet1480();
      int []k= leet1480.runningSum(arr);
      for (int i:k) {
          System.out.println(i);
      } }
         */
        /**
        String s="codeleet";
        String s1 = "aiohn";
        int []arr = {4,5,6,7,0,2,1,3};
        int [] arr2={3,1,4,2,0};
    Leet1528 leet1528=new Leet1528();
        System.out.println(leet1528.restoreString(s1,arr2));

         */
        //1431
        /**
        int [] candies={2,3,5,1,3};
        int extraCandies=3;

        Leet1431 leet1431=new Leet1431();

        for (int i=0;i<candies.length;i++){
            System.out.println(leet1431.kidsWithCandies(candies, extraCandies).get(i));
        }
         **/
        /**
        int nums []={2,5,1,3,4,7};
        int n=3;

        Leet1470  leet1470=new Leet1470();
        */
         // int [] nums1= leet1470.shuffle(nums,n);
      //  for(int x:nums1){
           // System.out.println(x);
      //  }
        /**
        Leet1 leet1=new Leet1();
        int[] nums2=leet1.twoSum(nums,7);

        for (int x:nums2){
            System.out.println(x);
        }*/

      /**  Leet7 leet7=new Leet7();
        System.out.println(  leet7.reverse(0
        ));

       **/
      /**
        ListNode a=new ListNode(9,new ListNode(9,new ListNode(9,new ListNode(9,null))));
        ListNode b=new ListNode(9,new ListNode(9,new ListNode(9,null)));
        Leet2 leet2=new Leet2();
        ListNode zz=new ListNode();
        zz=leet2.addTwoNumbers(a,b);
        for (int i=0;i<5;i++){
            System.out.println(zz.val);
            zz=zz.next;
        }
      */
        /**
         *

        Leet283 leet283 =new Leet283();
            int [] nums={0,1,0,3,12};
            leet283.moveZeroes(nums);

            int [] a=new int[3];

        System.out.println(a.length);
    *//**
        Leet91 leet91=new Leet91();
        String s="226";
        System.out.println(leet91.numDecodings(s));
*/
    /**
        Leet9 leet9=new Leet9();
        System.out.println(leet9.isPalindrome(121));
        String a="c";
        System.out.println();

     */
    /**
        Leet13 leet13=new Leet13();
        System.out.println(leet13.romanToInt("IV"));
       */

       // System.out.println(1/2);
     //   int [] num={-1};
        // Leet23 leet23=new Leet23();
        //leet23.removeDuplicates(num);
/*
        MST1710 mst1710=new MST1710();
        System.out.println( mst1710.majorityElement(num));*/

        MST1704 mst1704=new MST1704();
        // System.out.println(mst1704.missingNumber(num));

        MST1617 mst1617=new MST1617();
        //  System.out.println(mst1617.maxSubArray(num));
        MST1615 mst1615=new MST1615();
        //System.out.println( mst1615.masterMind("BRBB",
        //      "RBGY")[1]);
       // int [] num12={1};
        //  System.out.println(num12.length);
      //  int [] array169={3,2,3};
        Leet169 leet169=new Leet169();
        //   int i = leet169.majorityElement(array169);
        //  System.out.println(i);
        //  Leet66 leet66=new Leet66();
        //int[] ints = leet66.plusOne(array169);
        // System.out.println(ints);


//
//        Leet28 leet28=new Leet28();
//        int i = leet28.strStr( "mississippi",
//                "issipi");
//
//        int [] num1={4,5,6,0,0,0};
//        int [] num2={1,2,3};
//        Leet88 leet88=new Leet88();
//        leet88.merge(num1,3,num2,3);

      /*  MST0109 mst0109=new MST0109();
        String s1 = "aba";
        String s2 = "bab";

        boolean flipedString = mst0109.isFlipedString2(s1, s2);*/

    /*  MST0105 mst0105 =new MST0105();
      String a= "";
      String b="a";

        boolean b1 = mst0105.oneEditAway(a, b);*/

 /*    String a="tactcoa";
        MST0104 mst0104 = new MST0104();
        boolean b = mst0104.canPermutePalindrome(a);
        System.out.println(b);
*/

 /*Leet1208 leet1208 =new Leet1208();
        int i = leet1208.equalSubstring("abcd", "cdef", 3);
        System.out.println(i);
    */
      /*  int [] array={1,2,3,4,5,6,1
        };
        Leet1423 leet1423 =new Leet1423();
        int i = leet1423.maxScore(array, 3);
        System.out.println(i);
    */
       /* int [] array={1,3,2};
        int [] array1={1,2,4,5,3};
      Leet655 leet655 =new Leet655();
        boolean b = leet655.checkPossibility(array);
        System.out.println(b);*/
/*
       int [] array={4,4};
       Leet978 leet978=new Leet978();
        int i = leet978.maxTurbulenceSize(array);
        System.out.println(i);*/

        /*int [] array={5,7,7,8,8,10};
        JZ53_1 jz53_1=new JZ53_1();
        int search = jz53_1.search(array, 8);
        System.out.println(search);*/
        int [] array1={1,3,1};

        MST1716 mst1716=new MST1716();
        int massage = mst1716.massage(array1);

        System.out.println(massage);
    }

    private static void method1() {
        method2(1, 2);

    }

    private static int method2(int a, int b) {
        int c = a + b;
        return c;
    }
}




